package com.ctshk.rpc.order.airexpress.dto.mtr;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.DigestUtils;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author 胡广
 * @since 2021/2/19
 */
@Data
@ApiModel(value = "机场快线-港铁DTO",description = "机场快线-港铁DTO")
public class AirportExpressMTRDTO {
    @ApiModelProperty("代理商ID")
    private String agentId;
    @ApiModelProperty("代理商用户名")
    private String agentUser;
    @ApiModelProperty("代理商密码")
    private String agentPwd;
    @ApiModelProperty("商户参考号。用订单编号")
    private String merchantRef;
    @ApiModelProperty("称谓,Mr or Miss")
    private String title;
    @ApiModelProperty("消费者姓")
    private String firstName;
    @ApiModelProperty("消费者名")
    private String familyName;
    @ApiModelProperty("消费者地区")
    private String country;
    @ApiModelProperty("消费者邮件,代入email去计算checksum")
    private String email;
    @ApiModelProperty("下单类型，(QR / Non-QR)")
    private String type;
    @ApiModelProperty("校验码，规则：checksum = SHA-1(agentId + “|” + email + “|” + total ticket(s)+ “|” + MTR key) ")
    private String checksum;
    @ApiModelProperty("唯一事务处理引用,MTR的ABS系统生成的数字")
    private String refNo;
    @ApiModelProperty("错误码(00:成功)")
    private String errorCode;
    @ApiModelProperty("错误描述")
    private String errorMsg;
    @ApiModelProperty("机场快线票")
    private List<AirportExpressTicketMTRDTO> ticket;

}
